﻿@using Webdiyer.WebControls.Mvc;
@model PagedList<Inspinia_MVC5.Models.Department>

<table class="table table-striped">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.DepartName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DepartDesc)
        </th>
        <th></th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.DepartName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.DepartDesc)
            </td>
            <td>
                @Html.ActionLink("详情", "Details", new { id = item.Id }, new { @class = "btn btn-primary btn-sm" })
                @Html.ActionLink("编辑", "Edit", new { id = item.Id }, new { @class = "btn btn-white btn-sm" })
                @Html.ActionLink("删除", "Delete", new { id = item.Id }, new { @class = "btn btn-white btn-sm" })
            </td>
        </tr>
    }

</table>